package cn.ilikes.tools.nosql.test.jpa.pojos;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn;

@Entity
@Table(name = "pe_dept_employe_maps", schema = "ilikes")
public class DeptEmployeMaps {

	@Id
	@IndexColumn(index = IndexColumn.Index.analyzed, name = "id", store = IndexColumn.Store.yes)
	private Integer uuid;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "employes_id", nullable = false)
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "employeesId", store = IndexColumn.Store.no)
	private Employees employees;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "role_module_maps_id", nullable = false)
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "roleModuleMapsId", store = IndexColumn.Store.no)
	private RoleModuleMaps roleModuleMaps;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "depts_id", nullable = false)
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "deptsId", store = IndexColumn.Store.no)
	private Depts depts;

	public Integer getUuid() {
		return uuid;
	}

	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}

	public Employees getEmployees() {
		return employees;
	}

	public void setEmployees(Employees employees) {
		this.employees = employees;
	}

	public RoleModuleMaps getRoleModuleMaps() {
		return roleModuleMaps;
	}

	public void setRoleModuleMaps(RoleModuleMaps roleModuleMaps) {
		this.roleModuleMaps = roleModuleMaps;
	}

	public Depts getDepts() {
		return depts;
	}

	public void setDepts(Depts depts) {
		this.depts = depts;
	}

}
